package com.example.spring_forum.services;

import com.example.spring_forum.exception.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleReplyService {
    /**
     * 根据帖子查询回复列表
     * @param articleId 帖子id
     * @return List<ArticleReply>
     */
    List<ArticleReply> selectByArticleId(Long articleId);

    /**
     * 新增一个回复对象
     * @param articleReply
     */
    @Transactional
    void create(ArticleReply articleReply);
}
